package com.ruoyi.fuw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fuw.mapper.FuwCommsOrdersMapper;
import com.ruoyi.fuw.domain.FuwCommsOrders;
import com.ruoyi.fuw.service.IFuwCommsOrdersService;

/**
 * 商品订单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-30
 */
@Service
public class FuwCommsOrdersServiceImpl implements IFuwCommsOrdersService 
{
    @Autowired
    private FuwCommsOrdersMapper fuwCommsOrdersMapper;

    /**
     * 查询商品订单信息
     * 
     * @param uId 商品订单信息主键
     * @return 商品订单信息
     */
    @Override
    public FuwCommsOrders selectFuwCommsOrdersByUId(Long uId)
    {
        return fuwCommsOrdersMapper.selectFuwCommsOrdersByUId(uId);
    }

    /**
     * 查询商品订单信息列表
     * 
     * @param fuwCommsOrders 商品订单信息
     * @return 商品订单信息
     */
    @Override
    public List<FuwCommsOrders> selectFuwCommsOrdersList(FuwCommsOrders fuwCommsOrders)
    {
        return fuwCommsOrdersMapper.selectFuwCommsOrdersList(fuwCommsOrders);
    }

    /**
     * 新增商品订单信息
     * 
     * @param fuwCommsOrders 商品订单信息
     * @return 结果
     */
    @Override
    public int insertFuwCommsOrders(FuwCommsOrders fuwCommsOrders)
    {
        return fuwCommsOrdersMapper.insertFuwCommsOrders(fuwCommsOrders);
    }

    /**
     * 修改商品订单信息
     * 
     * @param fuwCommsOrders 商品订单信息
     * @return 结果
     */
    @Override
    public int updateFuwCommsOrders(FuwCommsOrders fuwCommsOrders)
    {
        return fuwCommsOrdersMapper.updateFuwCommsOrders(fuwCommsOrders);
    }

    /**
     * 批量删除商品订单信息
     * 
     * @param uIds 需要删除的商品订单信息主键
     * @return 结果
     */
    @Override
    public int deleteFuwCommsOrdersByUIds(Long[] uIds)
    {
        return fuwCommsOrdersMapper.deleteFuwCommsOrdersByUIds(uIds);
    }

    /**
     * 删除商品订单信息信息
     * 
     * @param uId 商品订单信息主键
     * @return 结果
     */
    @Override
    public int deleteFuwCommsOrdersByUId(Long uId)
    {
        return fuwCommsOrdersMapper.deleteFuwCommsOrdersByUId(uId);
    }
}
